
import axios from '@/api/fetch';
import SERVER from './../../server'

// 查询细分定义列表
export const queryIndustryCategory = params => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory`, { params });

// 新增细分定义
export const addIndustryCategory = params => axios.post(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory`, params);

// 根据id获取细分定义
export const getIndustryCategoryById = ( id , params) => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/${id}`, {params});

// 修改细分定义
export const ediIndustryCategory = ( id , params) => axios.put(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/${id}`, params );
